
class WeChatConfig(object):
    Token = '893db2a8349213257fa560e4096c7201'
    # AppId = 'wxe9fc89d710c5d6f6'
    # AppSecret = '6cf7f84fea814d3b9bd6f0dfecf59ef2'
    AppId = 'wx5152542a1afb1041'
    AppSecret = 'b66a3b614b3937b6c38abf5faf146f8c'
    EncodingAESKey = 'V1i5hfxCIPZYeXtLjhRtytMRwZc0gClkRL17Rkvbwh2'
    Menus = {
        'music': {
            "type": 'click',
            "name": '听歌',
            "key": "V1001_TODAY_MUSIC"
        },
        'chat': {
            "type": 'click',
            "name": '聊天',
            "key": "V1001_TODAY_CHAT"
        }
    }


def get_access_token_url():
    url = 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={AppId}&secret={AppSecret}'
    url_dict = dict()
    url_dict['AppId'] = WeChatConfig.AppId
    url_dict['AppSecret'] = WeChatConfig.AppSecret
    return url.format(**url_dict)

